import React from 'react'
import { Space, Table, Modal, Checkbox, Form, Input, Button, } from 'antd';
const useSear = (props) => {
    const {czform,onFinishs,onFinishFaileds,cz}=props
  return (
   
      <Form
                form={czform}
                name="basic"
                layout='inline'
                style={{ maxWidth: 1600 }}
                initialValues={{ remember: true }}
                onFinish={onFinishs}
                onFinishFailed={onFinishFaileds}
                autoComplete="off"
            >
                <Form.Item
                    label=""
                    name="title"
                >
                    <Input placeholder='请输入描述名称' />
                </Form.Item>

                <Form.Item
                    label=""
                    name="content"
                >
                    <Input placeholder='请输入描述词' />
                </Form.Item>

                <Form.Item label={null}>
                    <Button type="primary" htmlType="submit">
                        搜索
                    </Button>
                    <Button  htmlType="submit" onClick={cz}>
                        清空
                    </Button>
                </Form.Item>
            </Form>

  )
}

export default useSear
